<link rel="stylesheet" href="__CDN__/assets/addons/xilujob/css/style.css" type="text/css">
<link rel="stylesheet" href="__CDN__/assets/addons/xilujob/css/reset.css" type="text/css">
<div class="main">
    <div class="job-preview_header">
        <div class="container clearfix">
            <div class="job-preview_header_con">
                <p class="company_name single-line">{$job.job_name}</p>
                <p class="salary">{$job.salary_text}</p>
                <p>{$job.city?$job.city.shortname:''}{$job.district?$job.district.shortname:''} | 招{$job.num}人 | {$job.type_text}</p>
                <div class="clearfix">
                    <div class="label">{$job.work_experience?$job.work_experience.name:''}</div>
                    <div class="label">{$job.education_level?$job.education_level.name:''}</div>
                    {foreach $job.benefits as $benefit}
                    <div class="label">{$benefit.name}</div>
                    {/foreach}
                </div>
            </div>
            <p class="time">{:date('Y-m-d')}</p>
        </div>
    </div>
    <div class="container">
        <div class="job-preview_con">
            <div class="job-preview_group">
                <div class="job-preview_title">职位描述</div>
                <div class="job-preview_subTitle">
                    岗位职责：<i class="icon_line"></i>
                </div>
                <div class="job-preview_des">
                    {foreach :explode("\n", $data.responsibility) as $line}
                    <p>{$line}</p>
                    {/foreach}
                </div>
            </div>
            <div class="job-preview_group">
                <div class="job-preview_title">工作地址</div>
                {foreach $job.locations as $location}
                <div class="job-preview_des">{$location.district.allname|str_replace=',',' - ',###} - {$location.address}</div>
                {/foreach}
            </div>
            <div class="job-preview_group">
                <div class="job-preview_title">职位发布者</div>
                <div class="job-preview_publsher">
                    <div class="tx_box" style="background-image:url('{$user.avatar|cdnurl}');"></div>
                    <div class="con">
                        <p class="name">{$data.contact_person}</p>
                        <p class="tel">{$data.contact_phone}</p>
                    </div>
                </div>
            </div>
        </div>
        <a id="submit" href="javascript:;" class="btn">立即发布</a>
    </div>
</div>
<script>
    var jobData = {$data|json_encode};
</script>